import type { RouteRecordRaw } from 'vue-router';

const configRoutes: RouteRecordRaw = {
  path: '/config',
  name: 'Config',
  component: () => import('@/layouts/BasicLayout.vue'),
  meta: {
    title: 'menu.config.title',
    icon: 'ToolOutlined',
    orderNo: 3,
    requiresAuth: true,
  },
  children: [
    {
      path: 'dict',
      name: 'ConfigDict',
      component: () => import('@/views/config/dict/index.vue'),
      meta: {
        title: 'menu.config.dict',
        icon: 'BookOutlined',
        requiresAuth: true,
        permissions: ['config:dict:list'],
      },
    },
    {
      path: 'setting',
      name: 'ConfigSetting',
      component: () => import('@/views/config/setting/index.vue'),
      meta: {
        title: 'menu.config.setting',
        icon: 'SettingOutlined',
        requiresAuth: true,
        permissions: ['config:setting:list'],
      },
    },
  ],
};

export default configRoutes; 